package liuliu.throughwaring.model;

import java.io.Serializable;

import liuliu.custom.method.Utils;

/**
 * Created by Administrator on 2015/11/11.事务的模型
 */
public class TransactionModel implements Serializable {
    private int id;
    /// <summary>
    /// 采集事务编码（长度20）。
    /// </summary>
    private String TransactionId;

    //    / <summary>
    /// 设备编码（长度8）。
    /// </summary>
    private String TransactionTerminalId;

    /// <summary>
    /// 企业编码（长度10）。
    /// </summary>
    private String TransactionCompanyId;

    /// <summary>
    /// 民警警号（长度20）。
    /// </summary>
    private String TransactionPoliceId;

    /// <summary>
    /// 采集地点（东经）。
    /// </summary>
    private String TransactionEastPoint;

    /// <summary>
    /// 采集地点（北纬）。
    /// </summary>
    private String TransactionNorthPoint;

    /// <summary>
    /// 事务坐标图。
    /// </summary>
    private String TransactionPointImage;

    /// <summary>
    /// 采集民警照片。
    /// </summary>
    private String TransactionPoliceImage;

    /// <summary>
    /// 事务备注。
    /// </summary>
    private String TransactionComment;

    /// <summary>
    /// 事务日期。
    /// </summary>
    private String TransactionDate;

    /// <summary>
    /// 事务流水号。
    /// </summary>
    private int TransactionIndex;
    //是否上传（true,上传。false,未上传）
    private boolean IsUpLoad;

    public String getInfo() {
        String info = "TransactionId="
                + Utils.URLEncode(this.getTransactionId()) + "&"
                + "TransactionTerminalId="
                + Utils.URLEncode(this.getTransactionTerminalId()) + "&"
                + "TransactionCompanyId="
                + Utils.URLEncode(this.getTransactionCompanyId()) + "&"
                + "TransactionPoliceId="
                + Utils.URLEncode(this.getTransactionPoliceId()) + "&"
                + "TransactionEastPoint="
                + Utils.URLEncode(this.getTransactionEastPoint()) + "&"
                + "TransactionNorthPoint="
                + Utils.URLEncode(this.getTransactionNorthPoint()) + "&"
                + "TransactionComment="
                + Utils.URLEncode(this.getTransactionComment());

        if (!Utils.isEmptyString(this.getTransactionPoliceImage()))
            info += "&TransactionPoliceImage="
                    + Utils.URLEncodeImage(this.getTransactionPoliceImage());
        return info;
    }

    public boolean isUpLoad() {
        return IsUpLoad;
    }

    public void setIsUpLoad(boolean isUpLoad) {
        IsUpLoad = isUpLoad;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTransactionComment() {
        return TransactionComment;
    }

    public void setTransactionComment(String transactionComment) {
        TransactionComment = transactionComment;
    }

    public String getTransactionCompanyId() {
        return TransactionCompanyId;
    }

    public void setTransactionCompanyId(String transactionCompanyId) {
        TransactionCompanyId = transactionCompanyId;
    }

    public String getTransactionDate() {
        return TransactionDate;
    }

    public void setTransactionDate(String transactionDate) {
        TransactionDate = transactionDate;
    }

    public String getTransactionEastPoint() {
        return TransactionEastPoint;
    }

    public void setTransactionEastPoint(String transactionEastPoint) {
        TransactionEastPoint = transactionEastPoint;
    }

    public String getTransactionId() {
        return TransactionId;
    }

    public void setTransactionId(String transactionId) {
        TransactionId = transactionId;
    }

    public int getTransactionIndex() {
        return TransactionIndex;
    }

    public void setTransactionIndex(int transactionIndex) {
        TransactionIndex = transactionIndex;
    }

    public String getTransactionNorthPoint() {
        return TransactionNorthPoint;
    }

    public void setTransactionNorthPoint(String transactionNorthPoint) {
        TransactionNorthPoint = transactionNorthPoint;
    }

    public String getTransactionPointImage() {
        return TransactionPointImage;
    }

    public void setTransactionPointImage(String transactionPointImage) {
        TransactionPointImage = transactionPointImage;
    }

    public String getTransactionPoliceId() {
        return TransactionPoliceId;
    }

    public void setTransactionPoliceId(String transactionPoliceId) {
        TransactionPoliceId = transactionPoliceId;
    }

    public String getTransactionPoliceImage() {
        return TransactionPoliceImage;
    }

    public void setTransactionPoliceImage(String transactionPoliceImage) {
        TransactionPoliceImage = transactionPoliceImage;
    }

    public String getTransactionTerminalId() {
        return TransactionTerminalId;
    }

    public void setTransactionTerminalId(String transactionTerminalId) {
        TransactionTerminalId = transactionTerminalId;
    }
    public Boolean isIsUpLoad(){
        return IsUpLoad;
    }
}
